package cn.edu.zzuli.mapper;

import cn.edu.zzuli.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from users")
    List<User> getUsers();

    @Insert("insert into users values(null,#{username},#{password})")
    boolean addUser(User user);
}
